package com.yunfeisoft.business.service.impl;

import com.yunfeisoft.business.dao.inter.DonationAssignmentItemDao;
import com.yunfeisoft.business.model.DonationAssignmentItem;
import com.yunfeisoft.business.service.inter.DonationAssignmentItemService;
import com.yunfeisoft.common.base.BaseServiceImpl;
import com.yunfeisoft.common.sql.separation.DataSourceChange;
import com.yunfeisoft.common.utils.Page;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * ClassName: DonationAssignmentItemServiceImpl
 * Description: 捐赠物品分配详细service实现
 * Author: Jackie liu
 * Date: 2020-05-14
 */
@Service("donationAssignmentItemService")
public class DonationAssignmentItemServiceImpl extends BaseServiceImpl<DonationAssignmentItem, String, DonationAssignmentItemDao> implements DonationAssignmentItemService {

    @Override
    @DataSourceChange(slave = true)
    public Page<DonationAssignmentItem> queryPage(Map<String, Object> params) {
        return getDao().queryPage(params);
    }

    @Override
    public List<DonationAssignmentItem> queryByDonationAssignmentId(String donationAssignmentId) {
        return getDao().queryByDonationAssignmentId(donationAssignmentId);
    }
}